﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommonsLib.Utility;
using System.Data.SqlClient;
using MaxLeaf.Platform.Functions;
using System.Data.Common;
using MaxLeaf.Platform.Commons;
using MaxLeaf.Platform.DataContract;
using CommonsLib.DB;

namespace MaxLeaf.Platform.DALImplementation
{
    public class poOrderDtlDAL : BaseDAL
    {
         
        public void SetReqDtlId(DBAccess dbcon, int intKey, int intReqHdrID, int intReqDtlID)
        {
            string strSql = "update poOrderDtl set ReqHdrId=@ReqHdrId,ReqDtlId=@ReqDtlId where DtlID=@FInterID  ";
            dbcon.ExecuteSql(strSql, new SqlParameter[] { new SqlParameter("@FInterID", intKey.ToString())
                ,new SqlParameter("@ReqHdrId", intReqHdrID.ToString())
                ,new SqlParameter("@ReqDtlId", intReqDtlID.ToString())
            });
        }
    }
}
